<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/styles.css" />
    <?php Yii::app()->bootstrap->register(); ?>
</head>

<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle = Yii::app()->name . ' - Login';
?>
<body>
    <div class="container" id="page">
        <h1>Вход</h1>

        <p>Тут что-нибудь красивое напишем или не напишем...</p>

        <div>

            <?php
            $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
                'id' => 'login-form',
                'type' => 'horizontal',
                'enableClientValidation' => true,
                'clientOptions' => array(
                    'validateOnSubmit' => true,
                ),
            ));
            ?>

            <div class="clear"></div>

            <?php echo $form->textFieldRow($model, 'username'); ?>

            <?php
            echo $form->passwordFieldRow($model, 'password');
            ?>

            <?php echo $form->checkBoxRow($model, 'rememberMe'); ?>

            <div class="form-actions">
                <?php
                $this->widget('bootstrap.widgets.TbButton', array(
                    'buttonType' => 'submit',
                    'type' => 'primary',
                    'label' => 'Войти',
                ));
                ?>
            </div>

            <?php $this->endWidget(); ?>

        </div><!-- form -->
    </div>
</body>